export class GoodsNotFoundError extends Error {
    constructor(goodsId: number) {
        super(`Goods not found with id: ${goodsId}`);
        this.name = 'GoodsNotFoundError';
    }
}

export class PayOrderFoundError extends Error {
    constructor() {
        super(`payOrder not found`);
        this.name = 'payOrderFoundError';
    }
}

export class GoodsRepeatablePurchaseError extends Error {
    constructor(goodsId: number) {
        super(`Goods cannot be repurchased with id: ${goodsId}`);
        this.name = 'GoodsRepeatablePurchaseError';
    }
}